<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>文章列表</title>
<%@include file="/WEB-INF/jsp/public/commons.jspf"%>
</head>
<body>
 <ol class="breadcrumb">
  <li><a href="home_innerCentre.action">首页</a></li>
  <li class="active">文章管理</li>
</ol>

<div class="col-sm-2" style="margin-bottom: 10px;">
 	<s:a cssClass="btn btn-success glyphicon glyphicon-plus" action="news_addUI.action" style="margin: 0 0 0 18px">添加</s:a>
</div>  
  
 
 <div class="container-fluid">
<table class="table table-striped table-bordered">
   <thead>
      <tr class="success">
       
		<td>标题</td>
		<td>类型</td>
		<td>发布时间</td>
		<td>作者</td>
		<td>操作</td>
      </tr>
   </thead>
   <tbody>
    <s:iterator value="recordList">
		<tr>
			<td>${title}</td>
			<td>
				<c:if test="${type==0}">
					最新要闻
				</c:if>
				<c:if test="${type==1}">
					常见问题
				</c:if>
				<c:if test="${type==2}">
					政策法规
				</c:if>
			</td>
			<td>${postTime}</td>
			<td>${author}</td>
			
			<td>
				<s:a action="news_del?id=%{id}">删除</s:a>
				
			</td>
		</tr>
	</s:iterator>
   </tbody>
</table>
<%--分页信息 --%>

<%@include file="/WEB-INF/jsp/public/pageView.jspf"%>
<form id="pageCondition" action="news_list.action"></form>

</div>
</body>

</html>